<?php

class Create_Mail_Domains {

	/**
	 * Make changes to the database.
	 *
	 * @return void
	 */
	public function up()
	{
        Schema::create('mail_domains', function($table) {
            $table->increments('id');
            $table->string('domain', 255);
            $table->unique('domain');
        });
	}

	/**
	 * Revert the changes to the database.
	 *
	 * @return void
	 */
	public function down()
	{
        Schema::drop('mail_domains');
	}

}
